#ifndef _DC_DEV_CTL_H_
#define _DC_DEV_CTL_H_

//#define DC_DEV_CHANNEL_TEST_EN

/* define the cmd type */
enum dc_dev_controlcmd
{
	DC_DEV_TXD_CHANNEL_SELECT = 1,  // select which  channel  to SEND data
	DC_DEV_RXD_CHANNEL_SELECT = 3,	// select which  channel  to RECEIVE data
	DC_DEV_UART_CHANNEL_SELECT,		// select which  channel  to COMMUNICATE
	DC_DEV_QUEST_CHANNEL_SELECT,	//  select which  channel  to QUEST ACK
	DC_DEV_UDP_LED, // indicate the status of UDP data 
	DC_DEV_LINKA_LED, // indicate the status of NET LINKA
	#ifdef DC_DEV_CHANNEL_TEST_EN
	DC_DEV_TEST_CHANNEL, // FOR test only
	#endif
	DC_DEV_MAXCMD
};



#define ENABLE 1
#define DISABLE 0

#define BIT0 	0x01
#define BIT1 	0x02
#define BIT2	0x04
#define BIT3	0x08
#define BIT4	0x10
#define BIT5	0x20	
#define BIT6	0x40
#define BIT7	0x80

/*define the channel*/
enum dc_dev_channel
{
	DC_DEV_CHANNEL_NONE = 0,
	DC_DEV_CHANNEL1 = BIT0,
	DC_DEV_CHANNEL2 = BIT1,
	DC_DEV_CHANNEL3 = BIT2,
	DC_DEV_CHANNEL4 = BIT3,
	DC_DEV_CHANNEL5 = BIT4,
	DC_DEV_CHANNEL6 = BIT5,
	DC_DEV_CHANNEL7 = BIT6,
	DC_DEV_CHANNEL8 = BIT7,
	DC_DEV_MAXCHANNEL
};

#endif /* #ifndef _DC_DEV_CTL_H_ */
